package com.nut.lmsc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nut.lmsc.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    IPage<Goods> listPage(Page page,
                          @Param("lon") BigDecimal lon,
                          @Param("lat") BigDecimal lat,
                          @Param("distance") Integer distance,
                          @Param("sellMode") Integer sellMode,
                          @Param("catPathId") String catPathId,
                          @Param("shopId") Integer shopId,
                          @Param("status") Integer status,
                          @Param("title") String title);

}